#pragma once
class StylusPoint
{
public:
	double x;
	double y;
	float pressureFactor;
	StylusPoint()
	{
		x = y = pressureFactor = 0;
	}
	StylusPoint(double dbX, double dbY);
	StylusPoint(double dbX, double dbY,float dbPFactor);
	bool operator ==(StylusPoint& other)
	{
		if (x == other.x && y == other.y)
		{
			return true;
		}
		return false;
	}

	double Distance(StylusPoint& other)
	{
		double dbX = other.x - x;
		double dbY = other.y - y;
		double dbLen2 = dbX * dbX + dbY * dbY;
		return sqrt(dbLen2);
	}

	~StylusPoint() {}
};